package com.ccrfid.rmc6.repository.business.rollcall2;

import com.ccrfid.rmc6.entity.business.rollcall2.RcLocationGroupMemberEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface RcLocationGroupMemberRepository extends Repository<RcLocationGroupMemberEntity, Long> {

    RcLocationGroupMemberEntity getById(Long id);

    List<RcLocationGroupMemberEntity> getAllByGroupId(Long groupId);

    void deleteById(Long id);

    void deleteAllByGroupId(Long groupId);

    RcLocationGroupMemberEntity save(RcLocationGroupMemberEntity entity);

    boolean existsById(Long id);

    boolean existsByGroupId(Long gorupId);
}
